package com.qikecn.utils;

import java.util.Random;


public class RandomUtil {
	// 传入区间数，产出该区间随机数
	public static int RandForInt(Integer num) {
		Random random = new Random();
		int x = random.nextInt(num);
		return x;
	}
	//6位随即数
	public static int RandForSix() {
		Random random = new Random();
		int x = random.nextInt(100000)+100000;
		return x;
	}
	public static void main(String[] args) {
		for (int i = 0; i < 30; i++) {
			System.out.println(RandForInt(5));
		}
	}
	
}
